package com.example.demo1.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import jakarta.validation.constraints.NotNull;

import java.time.LocalDateTime;

@Data
public class User {
    @NotNull
    private Integer id;
    private String name;
    @NotEmpty
    private String nickname;
    @JsonIgnore
    private String password;
    @NotEmpty
    private String email;
    private String userPic;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
